package cn.itrip.order.service;

import cn.itrip.pojo.ItripComment;
import cn.itrip.pojo.ItripImage;
import cn.itrip.utlis.Page;
import cn.itrip.vo.comment.ItripScoreCommentVO;

import java.util.List;
import java.util.Map;

/**
 * Created by LENOVO on 2018/8/26.
 */
public interface CommentService {
    //插入评论 并插入相应的图片信息
    Boolean saveComment(ItripComment itripComment, List<ItripImage> itripImageList) throws Exception;
    //根据酒店id查询评论分
    ItripScoreCommentVO getScoreCommentVo(Long hotelId) throws Exception;
    //根据酒店id查询总评论数
    Integer selectByHotel(Map<String,Object> map) throws Exception;
    //根据条件查询评论分页
    Page selectByPage(Map map,Integer pageSize,Integer pageNo) throws Exception;
}
